package zhtt.eureka.client.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhaott
 * @date: 2019/12/7 17:57
 **/
@Configuration
public class EurekaConfig {

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplage() {
        return new RestTemplate();
    }
}
